package com.nateshao.service;

import com.nateshao.dao.EmployeeDao;
import com.nateshao.entity.Employee;

/**
 * @Author TongJie Shao
 * Created by @Author  on 2020/7/13 14:29
 */
public class EmployeeService {
    private EmployeeDao employeeDao;
    public EmployeeService(EmployeeDao employeeDao){
        this.employeeDao = employeeDao;
    }
    public int getTotalEmployee()
    {
        return employeeDao.getTotal();
    }
    public void createEmployee(Employee employee) {
        employeeDao.addEmployee(employee);
    }
}
